  
var orderManage = function() {

	var _init = function() {

		var table = $('#table_order');
		var  uperUserId=$('#uperUserId').val();
		var tableUnit=table.dataTable({
			"processing": true,
			// 开启服务器模式
			serverSide: true,
			"ajax": {
				url:"/a/wxconf/comm/dtl",
				data:{"type":'1',"uperUserId":uperUserId,"status":'2'}  //提现
			},
			"autoWidth": true,
			"columns": [
				{
					"data": "amount",//提现金额
					"render": function(data, type, row, meta) {
						if(data){
							return data/100
						}else{
							return "--"
						}
					   
				      }
					
				},{
					"data":"accountName"//提现账户
				
				},/*{
					"data":"account"//提现账号
				
				},*/{
					"data":"tradeNo"//交易单号
				
				},{
					"data":"tradeDate",//交易时间,
					"render":function(data, type, row, meta) {
						if(data){
							return moment(data).format('YYYY-MM-DD HH:mm');
						}else{
							return "--";
						}
						
					}
				},
				{
					"data": "createDate",//申请日期
					"render":function(data, type, row, meta) {
						return moment(data).format('YYYY-MM-DD HH:mm');
					}
				},
				],
				"language": {
					url: '/assets/pages/Chinese.json'
				},
				"pageLength": 10,
				"order": [
					[4, "desc"]
					],
				/*	"columnDefs": [{
						"orderable": false,
						"targets": [0,2,3,1,]
					}],*/
            "dom": "<'row'<'.col-md-6 col-sm-12'><'col-md-6 col-sm-12'>r>" +
            "<t>" +
            "<'row'<'col-md-5'i><'col-md-7'>p>",
            "fnInitComplete": function() {},
           
		});

						
	}

	return {
		init: function() {
			_init();
		}

	};

}();

$(function() {

	orderManage.init();


});